package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户vip购买信息表
 * </p>
 *
 * @author Shane
 * @since 2019-09-05
 */
@TableName("user_vip_log")
public class UserVipLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * vipId
	 */
	@TableField(value="vip_id")
	private Integer vipId;

	/**
	 * 支付方式，0-微信  1-支付宝
	 */
	@TableField(value="pay_way")
	private Integer payWay;

	/**
	 * 金额，单位分
	 */
	private Integer amount;

	/**
	 * 订单号
	 */
	@TableField(value="order_number")
	private String orderNumber;

	/**
	 * 支付状态，0-未支付  1-已支付
	 */
	@TableField(value = "pay_status")
	private Integer payStatus;

	/**
	 * 状态，0-未删除  1-已删除
	 */
	@TableField(value = "`status`")
	private Integer status;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	/**
	 * 
	 */
	@TableField(value="update_time")
	private Date updateTime;

	public UserVipLog() {
	}

	public UserVipLog(Integer userId, Integer vipId, Integer payWay, Integer amount, String orderNumber, Integer payStatus) {
		this.userId = userId;
		this.vipId = vipId;
		this.payWay = payWay;
		this.amount = amount;
		this.orderNumber = orderNumber;
		this.payStatus = payStatus;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getVipId() {
		return vipId;
	}

	public void setVipId(Integer vipId) {
		this.vipId = vipId;
	}

	public Integer getPayWay() {
		return payWay;
	}

	public void setPayWay(Integer payWay) {
		this.payWay = payWay;
	}

	public Integer getAmount() {
		return amount;
	}

	public void setAmount(Integer amount) {
		this.amount = amount;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public Integer getPayStatus() {
		return payStatus;
	}

	public void setPayStatus(Integer payStatus) {
		this.payStatus = payStatus;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
